FROM python:3.12-slim

WORKDIR /app

# 复制项目文件
COPY pyproject.toml ./
COPY main.py ./
COPY static/ ./static/

# 安装Python依赖
RUN pip install --no-cache-dir -e .

EXPOSE 80

CMD ["python", "main.py"]
